using UnityEngine;
using System.Collections;

public class LocationTrigger: Trigger 
{
	public Vector3 goalLocation;
	public float innacuracyAllowed=0;
	public override TriggeredEvent hasReachedGoal()
	{
		if(Vector3.Distance(transform.position,goalLocation)<+innacuracyAllowed)
		{
			TriggeredEvent te=new TriggeredEvent();
			te.hasMetGoal=true;
			return te;
		}
		return null;
	}
}
